﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Windows.Media.Imaging;

namespace Sapro_Project
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();
        }

        private void button_cad_GotFocus(object sender, System.Windows.RoutedEventArgs e)
        {
        	// TODO: Add event handler implementation here.
            button_cad.Content = "";
            ImageBrush imEx = new ImageBrush();
            imEx.ImageSource = new BitmapImage(new Uri(@"images/botão_cad_pressed.png", UriKind.Relative));
            button_cad.Background = imEx;
        }

        private void button_cad_LostFocus(object sender, RoutedEventArgs e)
        {
            ImageBrush imEx = new ImageBrush();
            imEx.ImageSource = new BitmapImage(new Uri(@"images/botão_cad.png", UriKind.Relative));
            button_cad.Background = imEx;
        }
        private void button_cad_MouseLeave(object sender, MouseEventArgs e)
        {
            ImageBrush imEx = new ImageBrush();
            imEx.ImageSource = new BitmapImage(new Uri(@"images/botão_cad.png", UriKind.Relative));
            button_cad.Background = imEx;
        }

        private void button_ata_GotFocus(object sender, RoutedEventArgs e)
        {
            button_ata.Content = "";
            button_ata.BorderBrush = new SolidColorBrush(Colors.Transparent);
            ImageBrush imEx = new ImageBrush();
            imEx.ImageSource = new BitmapImage(new Uri(@"images/botão_ata_pressed.png", UriKind.Relative));
            button_ata.Background = imEx;
        }

        private void button_ata_LostFocus(object sender, RoutedEventArgs e)
        {
            ImageBrush imEx = new ImageBrush();
            imEx.ImageSource = new BitmapImage(new Uri(@"images/botão_ata.png", UriKind.Relative));
            button_ata.Background = imEx;
        }

        private void button_ata_MouseLeave(object sender, MouseEventArgs e)
        {
            ImageBrush imEx = new ImageBrush();
            imEx.ImageSource = new BitmapImage(new Uri(@"images/botão_ata.png", UriKind.Relative));
            button_ata.Background = imEx;
        }
        private void button_rel_GotFocus(object sender, RoutedEventArgs e)
        {
            button_rel.Content = "";
            button_rel.BorderBrush = new SolidColorBrush(Colors.Transparent);
            ImageBrush imEx = new ImageBrush();
            imEx.ImageSource = new BitmapImage(new Uri(@"images/botão_rel_pressed.png", UriKind.Relative));
            button_rel.Background = imEx;
        }

        private void button_rel_LostFocus(object sender, RoutedEventArgs e)
        {
            ImageBrush imEx = new ImageBrush();
            imEx.ImageSource = new BitmapImage(new Uri(@"images/botão_rel.png", UriKind.Relative));
            button_rel.Background = imEx;
        }

        private void button_rel_MouseLeave(object sender, MouseEventArgs e)
        {
            ImageBrush imEx = new ImageBrush();
            imEx.ImageSource = new BitmapImage(new Uri(@"images/botão_rel.png", UriKind.Relative));
            button_rel.Background = imEx;
        }
    }
}
